Method and System for Processing Lifelong Learning of Terminal and Apparatus

ABSTRACT

A method and a system for processing lifelong learning of a terminal, and an apparatus is presented. The method for processing lifelong learning of a terminal according to the present disclosure includes sending, to a server, a request for downloading a function module, where the download request includes description information of the function module; receiving the function module that is sent by the server and is corresponding to the description information; and using the function module to expand and/or update a local function. According to the embodiments of the present disclosure, the lifelong learning of the terminal is implemented, and a problem in the prior art that the terminal cannot perform function expansion and updating is resolved.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of International Application No. PCT/CN2014/082698, filed on Jul. 22, 2014, which claims priority to Chinese Patent Application No. 201310699881.6, filed on Dec. 18, 2013, both of which are hereby incorporated by reference in their entireties.

TECHNICAL FIELD

Embodiments of the present disclosure relate to the technical field of computer science, and in particular, to a method and a system for processing lifelong learning of a terminal, and an apparatus.

BACKGROUND

With rapid development of science and technology, an intelligent terminal emerges accordingly. The intelligent terminal has an independent operating system and independent operating space. Therefore, the intelligent terminal has a function of intelligently analyzing and processing a problem. For example, the intelligent terminal may intelligently analyze a usage scenario of a user according to a configuration currently used by the user, and may also intelligently analyze a usage preference of the user of the intelligent terminal.

At present, when an intelligent terminal in the market is delivered, a corresponding system is migrated to an operating system of the intelligent terminal by a manufacturer. Therefore, a corresponding function of the intelligent terminal is restricted and unchangeable, and the corresponding function of the intelligent terminal is the same for all users.

Therefore, in the prior art, an intelligent terminal cannot perform function expansion and updating.

SUMMARY

Embodiments of the present disclosure provide a method and a system for processing lifelong learning of a terminal, and an apparatus, so as to resolve a problem in the prior art that an intelligent terminal cannot perform function expansion and updating.

A first aspect of the present disclosure provides a method for processing lifelong learning of a terminal, including sending, to a server, a request for downloading a function module, where the download request includes description information of the function module; receiving the function module that is sent by the server and is corresponding to the description information; and using the function module to expand and/or update a local function.

In a first possible implementation manner of the first aspect, before the sending, to a server, a request for downloading a function module, the method further includes sending a retrieval query request to the server after a task is created, where the retrieval query request includes task requirement information; and receiving a retrieval result sent by the server, where the retrieval result includes the description information that is of the function module and is corresponding to the task requirement information; and after the using the function module to expand and/or update a local function, the method further includes using an expanded and/or updated local function to process the task.

With reference to the first possible implementation manner of the first aspect, in a second possible implementation manner of the first aspect, after the using an expanded and/or updated local function to process the task, the method further includes feeding back operating data obtained after the task processing to the server, so that the server updates the function module according to the task and the operating data corresponding to the task.

A second aspect of the present disclosure provides a method for processing lifelong learning of a terminal, including receiving a request that is sent by the terminal and for downloading a function module, where the download request includes description information of the function module; and sending the function module corresponding to the description information to the terminal, so that the terminal uses the function module to expand and/or update a local function.

In a first possible implementation manner of the second aspect, before the receiving a request that is sent by the terminal and for downloading a function module, the method further includes creating the function module according to a task and operating data corresponding to the task; and storing a correspondence between the function module and the description information of the function module.

With reference to the first possible implementation manner of the second aspect, in a second possible implementation manner of the second aspect, after the storing a correspondence between the function module and the description information of the function module, the method further includes receiving the task and the operating data corresponding to the task that are sent by the terminal; and updating the function module according to the task and the operating data.

With reference to any one of the second aspect to the second possible implementation manner of the second aspect, in a third possible implementation manner of the second aspect, before the receiving a request that is sent by the terminal and for downloading a function module, the method further includes receiving a retrieval query request sent by the terminal, where the retrieval query request includes task requirement information; and sending a retrieval result to the terminal, where the retrieval result includes the description information that is of the function module and is corresponding to the task requirement information.

A third aspect of the present disclosure provides a terminal device, including a sending unit configured to send, to a server, a request for downloading a function module, where the download request includes description information of the function module; a receiving unit configured to receive the function module that is sent by the server and is corresponding to the description information; and a local updating unit configured to use the function module to expand and/or update a local function.

In a first possible implementation manner of the third aspect, the terminal device further includes a retrieval query unit configured to, before the sending unit sends, to the server, the request for downloading the function module, send a retrieval query request to the server after a task is created, where the retrieval query request includes task requirement information; and receive a retrieval result sent by the server, where the retrieval result includes the description information that is of the function module and is corresponding to the task requirement information; and a processing unit configured to, after the local updating unit uses the function module to expand and/or update the local function, use an expanded and/or updated local function to process the task.

With reference to the first possible implementation manner of the third aspect, in a second possible implementation manner of the third aspect, the terminal device further includes a feedback unit configured to, after the processing unit uses the expanded and/or updated local function to process the task, feedback operating data obtained after the task processing to the server, so that the server updates the function module according to the task and the operating data corresponding to the task.

A fourth aspect of the present disclosure provides a server, including a receiving unit configured to receive a request that is sent by a terminal and for downloading a function module, where the download request includes description information of the function module; and a sending unit configured to send the function module corresponding to the description information to the terminal, so that the terminal uses the function module to expand and/or update a local function.

In a first possible implementation manner of the fourth aspect, the server further includes a creating unit configured to, before the receiving unit receives the request that is sent by the terminal and for downloading the function module, create the function module according to a task and operating data corresponding to the task; and a storage unit configured to, before the receiving unit receives the request that is sent by the terminal and for downloading the function module, store a correspondence between the function module and the description information of the function module.

With reference to the first possible implementation manner of the fourth aspect, in a second possible implementation manner of the fourth aspect, the server further includes an updating unit configured to, after the storage unit stores the correspondence between the function module and the description information of the function module, receive the task and the operating data corresponding to the task that are sent by the terminal; and update the function module according to the task and the operating data.

With reference to any one of the fourth aspect to the second possible implementation manner of the fourth aspect, in a third possible implementation manner of the fourth aspect, the server further includes a retrieval processing unit configured to, before the receiving unit receives the request that is sent by the terminal and for downloading the function module, receive a retrieval query request sent by the terminal, where the retrieval query request includes task requirement information; and send a retrieval result to the terminal, where the retrieval result includes the description information that is of the function module and is corresponding to the task requirement information.

A fifth aspect of the present disclosure provides a system for processing lifelong learning of a terminal, including the terminal device according to any one of the third aspect to the second possible implementation manner of the third aspect and the server according to any one of the fourth aspect to the third possible implementation manner of the fourth aspect.

According to the method and system for processing lifelong learning of a terminal, and the apparatus in the embodiments of the present disclosure, a terminal downloads a function module that is continuously updated by a server according to a task and operating data corresponding to the task, and uses the function module to expand and/or update a local function, which resolves a problem in the prior art that the terminal cannot perform function expansion and updating, and implements that the terminal has a capability of lifelong learning.

BRIEF DESCRIPTION OF DRAWINGS

To describe the technical solutions in the embodiments of the present disclosure more clearly, the following briefly introduces the accompanying drawings required for describing the embodiments. The accompanying drawings in the following description show some embodiments of the present disclosure, and persons of ordinary skill in the art may still derive other drawings from these accompanying drawings without creative efforts.

FIG. 1 is a flowchart of Embodiment 1 of a method for processing lifelong learning of a terminal according to the present disclosure;

FIG. 2 is a flowchart of Embodiment 2 of a method for processing lifelong learning of a terminal according to the present disclosure;

FIG. 3 is a schematic structural diagram of Embodiment 1 of a terminal device according to the present disclosure;

FIG. 4 is a schematic structural diagram of Embodiment 2 of a terminal device according to the present disclosure;

FIG. 5 is a schematic structural diagram of Embodiment 1 of a server according to the present disclosure;

FIG. 6 is a schematic structural diagram of Embodiment 2 of a server according to the present disclosure;

FIG. 7 is a schematic structural diagram of an embodiment of a system for processing lifelong learning of a terminal according to the present disclosure;

FIG. 8 is a schematic structural diagram of Embodiment 3 of a terminal device according to the present disclosure; and

FIG. 9 is a schematic structural diagram of Embodiment 3 of a server according to the present disclosure.

DESCRIPTION OF EMBODIMENTS

To make the objectives, technical solutions, and advantages of the embodiments of the present disclosure clearer, the following clearly describes the technical solutions in the embodiments of the present disclosure with reference to the accompanying drawings in the embodiments of the present disclosure. The described embodiments are some but not all of the embodiments of the present disclosure. All other embodiments obtained by persons of ordinary skill in the art based on the embodiments of the present disclosure without creative efforts shall fall within the protection scope of the present disclosure.

FIG. 1 is a flowchart of Embodiment 1 of a method for processing lifelong learning of a terminal according to the present disclosure. As shown in FIG. 1, the method in this embodiment may include the following steps:

Step 101: Send, to a server, a request for downloading a function module, where the download request includes description information of the function module.

Step 102: Receive the function module that is sent by the server and is corresponding to the description information.

Step 103: Use the function module to expand and/or update a local function.

When the terminal has a new function requirement, the terminal may send, according to the function requirement of the terminal, a request that includes description information of a corresponding function module to the server, so as to request to download the function module. Alternatively, the terminal may be set to periodically send a download request that includes description information of a corresponding function module to the server. The description information of the function module may be information that is used to describe the function module, such as a name of the function module and a type of the function module. The terminal receives the function module that is sent by the server and is corresponding to the description information, and uses the downloaded function module to expand a local function or update an existing local function module, so that the terminal has a capability of lifelong learning, such as user behavior analysis and image recognition. In addition to acquiring an updated function module from a server side, the terminal may further independently update the function module according to data collected by the terminal, so as to improve intelligence of the terminal.

Further, before the sending, to a server, a request for downloading a function module, the method further includes sending a retrieval query request to the server after a task is created, where the retrieval query request includes task requirement information; and receiving a retrieval result sent by the server, where the retrieval result includes the description information that is of the function module and is corresponding to the task requirement information; and after the using the function module to expand and/or update a local function, the method further includes using an expanded and/or updated local function to process the task.

After a task is created according to a function requirement, to query a function module related to the function requirement of the terminal, the terminal may send a retrieval query request to the server to determine whether the server has the corresponding function module; if yes, the terminal may further acquire description information of the function module from a retrieval result that is fed back by the server, where the description information is used by the terminal to send, to the server, a request for downloading the function module. After downloading the function module, the terminal uses the function module to complete expansion and/or updating of a local function, and uses an expanded and/or updated local function to process the task. For example, a smartphone does not have a personalized recommendation function that matches a user of the smartphone, or a personalized recommendation function module in the smartphone needs to be updated; the smartphone may send a keyword “recommendation” to a server to perform retrieving and querying, so as to retrieve and query a function module related to recommendation; the smartphone receives a retrieval result sent by the server, where the retrieval result includes a name and a corresponding type of such a function module. The terminal downloads the function module locally and uses the function module to implement a function of recommending a movie, a book, music, or the like to the user of the smartphone.

Further, after the using an expanded and/or updated local function to process the task, the method further includes feeding back operating data obtained after the task processing to the server, so that the server updates the function module according to the task and the operating data corresponding to the task.

The terminal uses the expanded and/or updated local function to process the task; in a process of processing the task, the terminal needs to provide the operating data of the function module accordingly; the terminal may upload the operating data to the server after processing the task, so that the server updates the function module according to the task and the operating data corresponding to the task. The function module that is updated using the operating data uploaded by the terminal to the server is more pertinent to the terminal.

In this embodiment, a terminal sends, to a server, a retrieval query request and a request for downloading a function module, and uses the downloaded function module to expand and/or update a local function; in addition, the function module on a server side may further be updated using operating data that is obtained after task processing and uploaded by the terminal to the server, which resolves a problem in the prior art that the terminal cannot perform function expansion and/or updating, and implements that the terminal has a capability of lifelong learning.

FIG. 2 is a flowchart of Embodiment 2 of a method for processing lifelong learning of a terminal according to the present disclosure. As shown in FIG. 2, the method in this embodiment may include the following steps:

Step 201: Receive a request that is sent by the terminal and for downloading a function module, where the download request includes description information of the function module.

Step 202: Send the function module corresponding to the description information to the terminal, so that the terminal uses the function module to expand and/or update a local function.

A server sends the function module corresponding to the description information to the terminal according to the description information, of the function module, included in the request that is sent by the terminal and for downloading the function module, so that the terminal expands and/or updates the local function.

Further, before the receiving a request that is sent by the terminal and for downloading a function module, the method further includes creating the function module according to a task and operating data corresponding to the task; and storing a correspondence between the function module and the description information of the function module.

The server needs to create the function module according to the task and the operating data corresponding to the task, where the function module is an initial function module. The initial function module may be created using a lifelong learning algorithm, such as classification, clustering, regression, and a rule. A type of the function module may be determined according to the task, which is correspondingly to establish an entire model, a group model, an individual model, or the like. The function module obtained by means of learning is stored in a function module library using an index. The index corresponds to the description information of the function module. To store and retrieve large number of function modules, data structures of different types of function modules need to be analyzed, so as to separately index the function modules effectively. For example, a dense vector, a sparse vector, and a tree-like classifier need different indexing mechanisms, so that retrieval is performed according to an id, a group, and a similarity. Storage of the function module used in this embodiment relates to storage and retrieval of a large scale of dense vectors, sparse vectors, trees, and pictures. The dense vectors relate to a method such as KDTree, ConeTree, and BBTree; the sparse vectors relate to a method such as an inverted table, PPJoin, and Spilltree. For a function module in a form of a tree, the tree may be converted into a rule, and then a character string is used to match the rule; or the tree may be regarded as a simple picture, and then matching is directly performed on the picture. The function module corresponds to a result model obtained after statistics collecting and lifelong learning by a server side, and is used by a client to complete a function such as intelligent prediction.

It should be noted that this embodiment sets no limitation on specific implementation of function module creation and storage.

Further, after the storing a correspondence between the function module and the description information of the function module, the method further includes receiving the task and the operating data corresponding to the task that are sent by the terminal; and updating the function module according to the task and the operating data.

The server may update the function module according to the task and the operating data corresponding to the task that are sent by the terminal; for the same task, the data may increase in batches as time passes, or may be fed back by the terminal to the server once and for all. An update algorithm of the function module is obtained by means of statistics collecting and lifelong learning. For example, updating of a function module corresponding to a same task may be completed by means of online learning; updating of function modules corresponding to different tasks may be completed by means of transfer learning. Mechanisms that include multi-task learning, lifelong learning, and the like may also be used to complete updating of a function module. Statistics collecting and lifelong learning may include related statistics collecting and a lifelong learning algorithm, for example, k-means, svm, Naive Bayes, and a decision tree. Methods related to transfer learning may include methods such as multi-task-based learning and TrAdaboost. Lifelong learning may include deep learning, an ELLA algorithm, and the like. The function module is increasingly accurate and intelligent after being updated using a lifelong learning mechanism. It should be noted that this embodiment sets no limitation on specific implementation of function module updating.

Further, before the receiving a request that is sent by the terminal and for downloading a function module, the method further includes receiving a retrieval query request sent by the terminal, where the retrieval query request includes task requirement information; and sending a retrieval result to the terminal, where the retrieval result includes the description information that is of the function module and is corresponding to the task requirement information.

The server receives the retrieval query request sent by the terminal, and sends, to the terminal, the description information that is of the function module and is corresponding to the task requirement information retrieved by the terminal. The description information of the function module may be information that is used to describe the function module, such as a name of the function module and a type of the function module.

In this embodiment, a server creates a function module according to a task and operating data corresponding to the task, stores the function module in a function module library, updates the function module according to the task and the operating data corresponding to the task, receives a retrieval query request and a download request that are sent by a terminal, and sends a corresponding function module to the terminal, so that the terminal uses the function module to expand and/or update a local function, which implements that the terminal has a capability of lifelong learning, and resolves a problem in the prior art that the terminal cannot perform function expansion and/or updating.

FIG. 3 is a schematic structural diagram of Embodiment 1 of a terminal device according to the present disclosure. As shown in FIG. 3, the terminal device in this embodiment may include a sending unit 101 configured to send, to a server, a request for downloading a function module, where the download request includes description information of the function module; a receiving unit 102 configured to receive the function module that is sent by the server and is corresponding to the description information; and a local updating unit 103 configured to use the function module to expand and/or update a local function.

The terminal device in this embodiment may be configured to implement the technical solution in the method embodiment shown in FIG. 1, and implementation principles and technical effects of the terminal device are similar and are not described herein again.

FIG. 4 is a schematic structural diagram of Embodiment 2 of a terminal device according to the present disclosure. As shown in FIG. 4, based on the apparatus structure shown in FIG. 3, the terminal device in this embodiment may further include a retrieval query unit 104 configured to, before the sending unit sends, to the server, the request for downloading the function module, send a retrieval query request to the server after a task is created, where the retrieval query request includes task requirement information; and receive a retrieval result sent by the server, where the retrieval result includes the description information that is of the function module and is corresponding to the task requirement information; a processing unit 105 configured to, after the local updating unit uses the function module to expand and/or update the local function, use an expanded and/or updated local function to process the task; and a feedback unit 106 configured to, after the processing unit uses the expanded and/or updated local function to process the task, feedback operating data obtained after the task processing to the server, so that the server updates the function module according to the task and the operating data corresponding to the task.

The terminal device in this embodiment may be configured to implement the technical solution in the method embodiment shown in FIG. 1, and implementation principles and technical effects of the terminal device are similar and are not described herein again.

FIG. 5 is a schematic structural diagram of Embodiment 1 of a server according to the present disclosure. As shown in FIG. 5, the server in this embodiment may include a receiving unit 201 configured to receive a request that is sent by a terminal and for downloading a function module, where the download request includes description information of the function module; and a sending unit 202 configured to send the function module corresponding to the description information to the terminal, so that the terminal uses the function module to expand and/or update a local function.

The server in this embodiment may be configured to implement the technical solution in the method embodiment shown in FIG. 2, and implementation principles and technical effects of the server are similar and are not described herein again.

FIG. 6 is a schematic structural diagram of Embodiment 2 of a server according to the present disclosure. As shown in FIG. 6, based on the apparatus structure shown in FIG. 5, the server in this embodiment may further include a creating unit 203 configured to, before the receiving unit receives the request that is sent by the terminal and for downloading the function module, create the function module according to a task and operating data corresponding to the task; a storage unit 204 configured to, before the receiving unit receives the request that is sent by the terminal and for downloading the function module, store a correspondence between the function module and the description information of the function module; an updating unit 205 configured to, after the storage unit stores the correspondence between the function module and the description information of the function module, receive the task and the operating data corresponding to the task that are sent by the terminal; and update the function module according to the task and the operating data; and a retrieval processing unit 206 configured to, before the receiving unit receives the request that is sent by the terminal and for downloading the function module, receive a retrieval query request sent by the terminal, where the retrieval query request includes task requirement information; and send a retrieval result to the terminal, where the retrieval result includes the description information that is of the function module and is corresponding to the task requirement information.

The server in this embodiment may be configured to implement the technical solution in the method embodiment shown in FIG. 2, and implementation principles and technical effects of the server are similar and are not described herein again.

FIG. 7 is a schematic structural diagram of an embodiment of a system for processing lifelong learning of a terminal according to the present disclosure. As shown in FIG. 7, the system for processing lifelong learning of a terminal in this embodiment may include a terminal device 301 and a server 302, where a principle of the terminal device 301 in this embodiment is the same as that of the embodiment of the method for processing lifelong learning of a terminal of the present disclosure shown in FIG. 1 and is not described herein again; a principle of the server in this embodiment is the same as that of the embodiment of the method for processing lifelong learning of a terminal of the present disclosure shown in FIG. 2 and is not described herein again.

FIG. 8 is a schematic structural diagram of Embodiment 3 of a terminal device according to the present disclosure. As shown in FIG. 8, the terminal device in this embodiment includes a processor 401 and an interface circuit 402. The figure further shows a memory 403 and a bus 404. The processor 401, the interface circuit 402, and the memory 403 are connected and complete mutual communication using the bus 404.

The bus 404 may be an industry standard architecture (ISA) bus, a peripheral component interconnect (PCI) bus, an inter-integrated circuit (I2C) bus, or the like. The bus 404 may be categorized into an address bus, a data bus, a control bus, and the like. For convenience of denotation, the bus is represented using only one thick line in FIG. 4; however, it does not indicate that there is only one bus or only one type of bus.

The memory 403 is configured to store executable program code, where the program code includes a computer operation instruction. The memory 403 may be a volatile memory, for example, a random-access memory (RAM); or may be a non-volatile memory (NVM), for example, a read-only memory (ROM), a flash memory, a hard disk drive (HDD), or a solid-state drive (SSD).

The processor 401 may be a central processing unit (CPU).

The processor 401 may invoke the operation instruction or program code stored in the memory 403 to perform a method for processing lifelong learning of a terminal provided in an embodiment of the present disclosure, where the method includes sending, by the processor 401 to a server, a request for downloading a function module, where the download request includes description information of the function module; receiving, by the processor 401 using the interface circuit 402, the function module that is sent by the server and is corresponding to the description information; using, by the processor 401, the function module to expand and/or update a local function; sending, by the processor 401, a retrieval query request to the server after a task is created, where the retrieval query request includes task requirement information; and receiving, by the processor 401 using the interface circuit 402, a retrieval result sent by the server, where the retrieval result includes the description information that is of the function module and is corresponding to the task requirement information; and after the using, by the processor 401, the function module to expand and/or update a local function, the method further includes using, by the processor 401, an expanded and/or updated local function to process the task; and feeding back, by the processor 401, operating data obtained after the task processing to the server, so that the server updates the function module according to the task and the operating data corresponding to the task.

FIG. 9 is a schematic structural diagram of Embodiment 3 of a server according to the present disclosure. As shown in FIG. 9, the server in this embodiment includes a processor 501 and an interface circuit 502. The figure further shows a memory 503 and a bus 504. The processor 501, the interface circuit 502, and the memory 503 are connected and complete mutual communication using the bus 504.

The bus 504 may be an ISA bus, a PCI bus, an I2C bus, or the like. The bus 504 may be categorized into an address bus, a data bus, a control bus, and the like. For convenience of denotation, the bus is represented using only one thick line in FIG. 9; however, it does not indicate that there is only one bus or only one type of bus.

The memory 503 is configured to store executable program code, where the program code includes a computer operation instruction. The memory 503 may be a volatile memory, for example, a RAM; or may be a NVM, for example, a ROM, a flash memory, a HDD, or a SSD.

The processor 501 may be a CPU.

The processor 501 may invoke the operation instruction or program code stored in the memory 503 to perform a method for processing lifelong learning of a terminal provided in an embodiment of the present disclosure, where the method includes receiving, by the processor 501 using the interface circuit 502, a request that is sent by a terminal and for downloading a function module, where the download request includes description information of the function module; sending, by the processor 501, the function module corresponding to the description information to the terminal, so that the terminal uses the function module to expand and/or update a local function; creating, by the processor 501, the function module according to a task and operating data corresponding to the task; storing, by the memory 503, a correspondence between the function module and the description information of the function module; receiving, by the processor 501 using the interface circuit 502, the task and the operating data corresponding to the task that are sent by the terminal; updating, by the processor 501, the function module according to the task and the operating data; receiving, by the processor 501 using the interface circuit 502, a retrieval query request sent by the terminal, where the retrieval query request includes task requirement information; and sending, by the processor 501, a retrieval result to the terminal, where the retrieval result includes the description information that is of the function module and is corresponding to the task requirement information.

Persons of ordinary skill in the art may understand that all or some of the steps of the method embodiments may be implemented by a program instructing relevant hardware. The foregoing program may be stored in a computer-readable storage medium. When the program runs, the steps of the method embodiments are performed. The foregoing storage medium includes any medium that may store program code, such as a ROM, a RAM, a magnetic disk, or an optical disc.

Finally, it should be noted that the foregoing embodiments are merely intended for describing the technical solutions of the present disclosure, but not for limiting the present disclosure. Although the present disclosure is described in detail with reference to the foregoing embodiments, persons of ordinary skill in the art should understand that they may still make modifications to the technical solutions described in the foregoing embodiments or make equivalent replacements to some or all technical features thereof, without departing from the scope of the technical solutions of the embodiments of the present disclosure. 

what is claimed is:
 1. A method for processing lifelong learning of a terminal, comprising: sending, by the terminal to a server, a download request for downloading a function module, wherein the download request comprises description information of the function module; receiving, by the terminal, the function module that is sent by the server and corresponds to the description information; and applying, by the terminal, the function module to at least one of expand and update a local function.
 2. The method according to claim 1, wherein before sending the download request for downloading the function module, the method further comprises: sending a retrieval query request to the server after a task is created, wherein the retrieval query request comprises task requirement information; and receiving a retrieval result sent by the server, wherein the retrieval result comprises the description information of the function module and corresponds to the task requirement information; and applying at least one of an expanded and updated local function to process the task after the applying the function module to at least one of expand and update the local function.
 3. The method according to claim 2, wherein after using the at least one of expanded and updated local function to process the task, the method further comprises: feeding back operating data obtained after the task processing to the server, such that the server updates the function module according to the task and the operating data corresponding to the task.
 4. A method for processing lifelong learning of a terminal, comprising: receiving a download request sent by the terminal for downloading a function module, wherein the download request comprises description information of the function module; and sending the function module corresponding to the description information to the terminal, such that the terminal uses the function module to at least one of expand and update a local function.
 5. The method according to claim 4, wherein before receiving the download request sent by the terminal for downloading the function module, the method further comprises: creating the function module according to a task and operating data corresponding to the task; and storing a correspondence between the function module and the description information of the function module.
 6. The method according to claim 5, wherein after storing the correspondence between the function module and the description information of the function module, the method further comprises: receiving the task and the operating data corresponding to the task that are sent by the terminal; and updating the function module according to the task and the operating data.
 7. The method according to claim 4, wherein before receiving the download request sent by the terminal for downloading the function module, the method further comprises: receiving a retrieval query request sent by the terminal, wherein the retrieval query request comprises task requirement information; and sending a retrieval result to the terminal, wherein the retrieval result comprises the description information of the function module and corresponds to the task requirement information.
 8. A terminal device, comprising: a transmitter configured to send a download request for downloading a function module to a server, wherein the download request comprises description information of the function module; a receiver configured to receive the function module sent by the server and corresponds to the description information; and a processor coupled to the transmitter and the receiver and configured to use the function module to at least one of expand and update a local function.
 9. The terminal device according to claim 8, wherein the processor is further configured to: send a retrieval query request to the server after a task is created before the transmitter sends, to the server, the download request for downloading the function module, wherein the retrieval query request comprises task requirement information; receive a retrieval result sent by the server, wherein the retrieval result comprises the description information that is of the function module and is corresponding to the task requirement information; and use an expanded and/or updated local function to process the task after the processor uses the function module to at least one of expand and update the local function.
 10. The terminal device according to claim 9, wherein the processor is further configured to feedback operating data obtained after the task processing to the server after the processor uses the at least one of expanded and updated local function to process the task, such that the server updates the function module according to the task and the operating data corresponding to the task.
 11. A server, comprising: a receiver configured to receive a download request sent by a terminal for downloading a function module, wherein the download request comprises description information of the function module; and a transmitter coupled to the receiver and configured to send the function module corresponding to the description information to the terminal, such that the terminal uses the function module to at least one of expand and update a local function.
 12. The server according to claim 11, further comprising: a processor configured to create the function module according to a task and operating data corresponding to the task before the receiver receives the download request that is sent by the terminal and for downloading the function module; and a memory coupled to the processor and configured to store a correspondence between the function module and the description information of the function module before the receiver receives the download request sent by the terminal for downloading the function module.
 13. The server according to claim 12, wherein the processor is further configured to: receive the task and the operating data corresponding to the task sent by the terminal after the memory stores the correspondence between the function module and the description information of the function module; and update the function module according to the task and the operating data.
 14. The server according to claims 11, further comprising a processor configured to: receive a retrieval query request sent by the terminal before the receiver receives the download request sent by the terminal for downloading the function module, wherein the retrieval query request comprises task requirement information; and send a retrieval result to the terminal, wherein the retrieval result comprises the description information of the function module and corresponds to the task requirement information.
 15. A system for processing lifelong learning of a terminal, comprising: a server; and a terminal device comprising: a terminal transmitter configured to send, to the server, a download request for downloading a function module, wherein the download request comprises description information of the function module; a terminal receiver configured to receive the function module sent by the server and corresponding to the description information; and a processor configured to use the function module to at least one of expand and update a local function, wherein the server comprises: a server receiver configured to receive the download request sent by the terminal for downloading the function module; and a server transmitter configured to send the function module corresponding to the description information to the terminal.
 16. The system according to claim 15, wherein the processor is further configured to: send a retrieval query request to the server after a task is created before the terminal transmitter sends, to the server, the download request for downloading the function module, wherein the retrieval query request comprises task requirement information; receive a retrieval result sent by the server, wherein the retrieval result comprises the description information of the function module and corresponds to the task requirement information; and use at least one of an expanded and updated local function to process the task after the processor uses the function module to at least one of expand and update the local function.
 17. The system according to claim 16, wherein the processor is further configured to feedback operating data obtained after the task processing to the server after the processor uses the at least one of expanded and updated local function to process the task, such that the server updates the function module according to the task and the operating data corresponding to the task.
 18. The system according to claim 15, wherein the server further comprises: a server processor configured to create the function module according to a task and operating data corresponding to the task before the server receiver receives the download request sent by the terminal for downloading the function module; and a memory configured to store a correspondence between the function module and the description information of the function module before the server receiver receives the download request.
 19. The system according to claim 18, wherein the server processor is further configured to: receive the task and the operating data corresponding to the task sent by the terminal after the memory stores the correspondence between the function module and the description information of the function module; and update the function module according to the task and the operating data.
 20. The system according to claim 19, wherein the server processor is further configured to: receive a retrieval query request sent by the terminal before the server receiver receives the download request sent by the terminal for downloading the function module, wherein the retrieval query request comprises task requirement information; and send a retrieval result to the terminal, wherein the retrieval result comprises the description information of the function module and corresponding to the task requirement information. 